home *** CD-ROM | disk | FTP | other *** search
- #ifndef NARG
-
- #define NARG 10 /* Max number of args to commands */
-
- struct cmds {
- char *name; /* Name of command */
- int (*func)(); /* Function to execute command */
- int stksize; /* Size of stack if subprocess, 0 if synch */
- int argcmin; /* Minimum number of args */
- char *argc_errmsg; /* Message to print if insufficient args */
- };
- #ifndef NULLCHAR
- #define NULLCHAR (char *)0
- #endif
-
- #if defined(__STDC__) || defined(__TURBOC__)
- int cmdparse(struct cmds cmds[],char *line,void *envp);
- int subcmd(struct cmds tab[],int argc,char *argv[],void *envp);
- #else
- int cmdparse(),subcmd();
- #endif
-
- #endif /* NARG */
-
-
-